package model

import "fyne.io/fyne/v2"

type Filter interface {
	GetCanvasObject() fyne.CanvasObject
	GetValue() string
	LoadValue(string)
	Reset()
	Filter(*FileInfo) bool
}

type FilterRule struct {
	Key     string  `yaml:"key"`
	Name    *string `yaml:"name"`
	Type    string  `yaml:"type"`
	MaxSize *string `yaml:"max_size"`
	MinSize *string `yaml:"min_size"`
	Depth   *string `yaml:"depth"`
}
